<?php


namespace app\text\controller;


use app\BaseController;
use app\Request;


class index extends BaseController
{
    public function hello($id,$name,$age){
        echo $id;
        echo "|";
        echo $name;
        echo "|";
        echo $age;
    }

    public function hi(Request $request){
//        $id = $request->param('id');
//        $name = $request->param('name');
//        $age = $request->param('age');
//        echo $id;
//        echo "|";
//        echo $name;
//        echo "|";
//        echo $age;

        $all = request()->param();
        $getAll = request()->get();
        dump($all);
        dump($getAll);
    }
}